package training.service;
import java.util.Collection;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import training.vo.Sales;

import baytony.db.Dao;
/**
 * @author fatsung
 *
 */
@Service("SalesService")
@Transactional(propagation=Propagation.REQUIRED)
public class SalesServiceImpl implements SalesService{
	@Autowired(required=true)
	@Qualifier("SalesDao")
	private Dao<Sales,String> dao;
	
	@Override
	public void delete(Sales arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Collection<Sales> arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void save(Collection<Sales> arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void save(Sales arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(Collection<Sales> arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void update(Sales arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public List<Sales> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Sales findById(String arg0) {
		// TODO Auto-generated method stub
		return dao.findById(arg0);
	}

	@Override
	public Sales getById(String id) {
		// TODO Auto-generated method stub
		return dao.findById(id);
	}

}
